package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.CkdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface CkdService extends BaseService<CkdBean> {

	CkdBean getCkdBeanById(String id) throws Exception;
	
	void removeCkdBeanById(String id) throws Exception;
	
	void removeCkdBeanByIds(String ids) throws Exception;
	
	CkdBean saveCkdBean(CkdBean crm) throws Exception;
	
	CkdBean updateCkdBean(CkdBean crm) throws Exception;
	
	Page<CkdBean>  findCkdBeanByCond(CkdBean bean,
			Page<CkdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveCkdBeanExt(String sql) throws Exception;

	String findCkdBeanExtCreate(String tableName) throws Exception;

	String findCkdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findCkdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasCkdBeanExtData(String tableName, String id)
			throws Exception;
}